package com.example.demo.service;

import com.example.demo.mapper.LogInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogService {
    @Autowired
    private LogInfoMapper logInfoMapper;

    @Transactional
    public void insertLog(String userName, String op) {
        logInfoMapper.insertLog(userName, op);
    }
}
